import { createBrowserRouter } from "react-router-dom";
import App from "../App";
import App01 from "../01-useReducer";
import App02 from "../02-useMemo";
import App03 from "../03-memo-基础用法";
import App04 from "../04-memo-props比较机制";
import App05 from "../05-useCallback";
import App06 from "../06-forwardRef";
import App07 from "../07-useInperativeHandle";
import App08 from "../08-class-实现counter";
import App09 from "../09-class-生命周期函数";
import App10 from "../10-class-组件通信";
import App11 from "../11-zustand-基础使用";
import App12 from "../12-zustand-异步支持";
import App13 from "../13-zustand-切片模式";

const router = createBrowserRouter([
{
    path: "/",
    element: <App />
  },
  {
    path: "/app01",
    element: <App01 />
  },
  {
    path: "/app02",
    element: <App02 />
  },
  {
    path: "/app03",
    element: <App03 />
  },
  {
    path: "/app04",
    element: <App04 />
  },
  {
    path: "/app05",
    element: <App05 />
  },
  {
    path: "/app06",
    element: <App06 />
  },
  {
    path: "/app07",
    element: <App07 />
  },
  {
    path: "/app08",
    element: <App08 />
  },
  {
    path: "/app09",
    element: <App09 />
  },
  {
    path: "/app10",
    element: <App10 />
  },
  {
    path: "/app11",
    element: <App11 />
  },
  {
    path: "/app12",
    element: <App12 />
  },
  {
    path: "/app13",
    element: <App13 />
  }
])

export default router